package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;

/**
 * 用户服务接口
 */
public interface UserService {
    public User findByUsername(String username);

    PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);

    void add(User user, Integer[] userIds);

    User findById(Integer id);

    List<Integer> findRoleIdsByUserId(Integer id);

    void edit(User user, Integer[] roleIds);

    List<User> findAll();

    void delete(Integer id);
	
	public LinkedHashSet<Map<String, Object>> findMenusByUsername(String username);
}
